<!DOCTYPE html>
<html>

<head>
    <meta charset='utf-8' />
    <title>OneGISer</title>
    <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />

    <script src='./lib/mapbox-gl.js'></script>
    <link href='./lib/mapbox-gl.css' rel='stylesheet' />
    
    <style>
        body {
            margin: 0;
            padding: 0;
        }

        #map {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 100%;
        }
    </style>
</head>

<body>

    <div id='map'></div>
    <script>
        mapboxgl.accessToken = 'pk.eyJ1Ijoiemh1cWlxaTEyMyIsImEiOiJjbDZwdThzOTkwNzd6M2JvODd4eXN0NXdrIn0.G6_v-vFX1Atl8tHwkKLLFQ';
        var map = new mapboxgl.Map({
            container: 'map',
            style: 'mapbox://styles/zhuqiqi123/cl8k6g97m000b14mnjt8341ig',
            center: [115, 36],
            zoom: 2,
            antialias: true, ////抗锯齿，通过false关闭提升性能
            attributionControl: false,
            projection: "globe", //地图投影
        });
    </script>
</body>

</html>